<%@ page language="java" contentType="text/html; charset=UTF-8"
         isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/mytag" prefix="yjd"%>
<body>
<div class="wrap">
    <div class="h_a">搜索</div>
    <form action="${requestScope.FPWEB.rootPath }/fundsPfClear/list${requestScope.FPWEB.urlStuff}"  class="J_ajaxForm" method="get" autocomplete="off" id="serchFrom">
        <div class="search_type cc">
            <label>结算日期：</label>
            <input name="cleardate1" type="text" class="input length_1 mr10 J_date" value="${param.cleardate1}">至
            <input name="cleardate2" type="text" class="input length_1 mr10 J_date" value="${param.cleardate2}">
            <button type="submit" class="btn btn_submit length_1">搜索</button>
            <button class="btn length_2 J_ajax_submit_btn" id="generateBtn">清算平台余额</button>
        </div>
    </form>
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td>结算日期</td>
                <td>首付充值金额</td>
                <td>A模式用户还款金额(实际还款金额)</td>
                <td>B模式还款金额</td>
                <td>B模式利润分成金额</td>
                <td>商户提现金额</td>
                <td>平台余额</td>
                <td>生成时间</td>
            </tr>
            </thead>
            <tbody id="J_word_list">
            <c:forEach items="${pager.pagerModel.dataList }" var="item" >
                <tr>
                    <td>${item.clear_date}</td>
                    <td>${item.strMap.pay_price}</td>
                    <td>${item.strMap.repayment_a}</td>
                    <td>${item.strMap.repayment_b}</td>
                    <td>${item.strMap.profit_b}</td>
                    <td>${item.strMap.merchantr_cash}</td>
                    <td>${item.strMap.balance}</td>
                    <td>${item.strMap.create_time}</td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
        <!-- 分页 -->
        <%@ include file="../public/pager/pager.pagination.jsp" %>
    </div>
</div>
<script>
    $("#generateBtn").click(
            function(){
                var url='${requestScope.FPWEB.rootPath}/fundsPfClear/generate${requestScope.FPWEB.urlStuff}';
                $("#serchFrom").attr("action",url);
            });
    YJD.use('AppAdminCommon');
</script>
</body>